FILE=list

all: hw1_1 hw1_2
	
	
#handWrittenCode:
hw1_1:  program.cpp list.cpp 
	g++ program.cpp list.cpp -o hw1_1	

#parserGeneratedCode
hw1_2:  
	bison $(FILE).ypp
	bison -d $(FILE).y
	flex $(FILE).l
	gcc -c lex.yy.c
	g++ $(FILE).tab.cpp $(FILE).cpp lex.yy.o -o hw1_2

clean:
	rm -rf *o hw1*
	rm -rf list.t*
	rm -rf lex.yy.c
